<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>

    <script src="../js/Demo1_first.js" type="text/javascript"></script>

    <script type="text/javascript">

        window.onload = function (){

        }

    </script>


</head>
<body>

    <form>
        用户名:<input type="text" name="username"
                      onfocus="console.log('focus')"
                      onblur="console.log('blur')"
                      onchange="console.log('change:'+this.value)"
                      oninput="console.log('input:'+this.value)"
                />
        性别
        <input type="radio" name="gender" checked onchange="alert('change')"/>男
        <input type="radio" name="gender" onchange="alert('change')"/>女
    </form>



</body>
</html>